package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.ArticleTopicService;
import com.terren.spider.entity.biz.ArticleReply;
import com.terren.spider.entity.biz.ArticleTopic;

@Service("articleTopicService")
public class ArticleTopicServiceImpl extends BasicServiceSupportImpl implements ArticleTopicService{
	private final String SQL_MAPPER = "articleTopicMapper.";
	private final String REPLY_SQL_MAPPER = "articleReplyMapper.";
	@Override
	public void save(List<ArticleTopic> items) throws Exception {
		basicDao.save(SQL_MAPPER+"addArticleTopic", items);
		
	}
	@Override
	public void saveReply(List<ArticleReply> items) throws Exception {
		basicDao.save(REPLY_SQL_MAPPER+"addArticleReply", items);
		
	}
	
	
}
